package com.ruoyi.system.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.github.pagehelper.Constant;
import com.github.pagehelper.IPage;
import com.ruoyi.system.domain.ToolKit;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.poi.ss.formula.functions.T;

import java.util.List;

/**
 * @author ：Wangziyi
 * @date ：Created in 2023/12/17 17:28
 * @description：ToDo
 * @modified By：
 * @version: 1.0
 */
public interface ToolKitMapper extends BaseMapper<ToolKit> {
    @Select("SELECT a.*,b.real_name FROM t_tool_kit as a JOIN sys_user as b ON a.creator=b.user_id ${ew.customSqlSegment}")
    Page<ToolKit> selectTookit(Page<ToolKit> page,@Param(Constants.WRAPPER) Wrapper<ToolKit> queryWrapper);

}
